// import { debounce } from "underscore/underscore-esm-min.js";
import debounce from "./01_防抖基本实现.js";

let input = document.querySelector("input");

//触发的事件
input.addEventListener("input", function () {
  console.log("input", this);

  // let func = debounce(fetchFn, 1000, this);
  // func();

  fetchFn();
});
let fetchFn = function () {
  console.log(this, "this");
  console.log("网络请求~");
};
fetchFn();
console.log(this);
